package com.hdu.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;


/**
 * 添加课程收藏vo
 *
 * @author xiaobai
 * @since 2024/05/20
 */
@Data
@ApiModel(value = "AddCourseVo", description = "新增课程基本信息")
public class AddCollectVo {


    @DecimalMax("5.0")
    @DecimalMin("0.0")
    @Digits(integer = 1, fraction = 2)
    @ApiModelProperty(value = "课程评分", required = true)
    private Float courseScore;

    @ApiModelProperty(value = "用户标识", required = true)
    private Integer userId;

    @NotEmpty(message = "课程标识不能为空")
    @ApiModelProperty(value = "课程标识", required = true)
    private Long coursePublishId;

}